home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Relax 2004 #3
/
PC Relax 3-2004.iso
/
AutoPlay
/
sextabu
/
browser.swf-xmlpath=data-&assetpath=assets-&toolpath=tools-&debug=1&pageid=5342.xml
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2004-06-22
|
1KB
|
46 lines
function rgbacolour(ir, ig, ib, ia, ihex)
{
if(ihex ne "")
{
this.hex = ihex;
this.r = new Number(parseInt(ihex.substr(1,2),16));
this.g = new Number(parseInt(ihex.substr(3,2),16));
this.b = new Number(parseInt(ihex.substr(5,2),16));
this.a = new Number(parseInt(ihex.substr(7,2),16));
}
else
{
this.r = new Number(ir);
this.g = new Number(ig);
this.b = new Number(ib);
this.a = new Number(ia);
hr = this.r.toString(16);
hg = this.g.toString(16);
hb = this.b.toString(16);
ha = this.a.toString(16);
if(length(hr) < 2)
{
hr = "0" add hr;
}
if(length(hg) < 2)
{
hg = "0" add hg;
}
if(length(hb) < 2)
{
hb = "0" add hb;
}
if(length(ha) < 2)
{
ha = "0" add ha;
}
this.hex = hr add hg add hb add ha;
}
}
if(_root.plcheck eq "1")
{
version = $version;
loadVariablesNum("/PlugCheck.jsp",0,"POST");
}
where = "browser";